#include<iostream>
using namespace std;
class A
{
public:
	virtual void aa()
	{
		cout<<"AAAA"<<endl;
	}
	~A()
	{}
};

class B:public A{

public:
	B(){}
	virtual void aa()
	{cout<<"BBBBBB"<<endl;}
	void bb()
	{
		A::aa();
	}
	~B()
	{}

};

void main()
{
	B b;
	b.B();
	system("pause");
}